package com.ddstation.doctor.mapper;

import com.ddstation.doctor.entity.DdDoctorEntity;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;


public interface DdDoctorMapper extends Mapper<DdDoctorEntity> {

	public int insertForAccount(DdDoctorEntity entity);
	//获取医生信息
	public DdDoctorEntity selectDoctorInfo(String doctorId);

	DdDoctorEntity selectDoctorInfoByKey(@Param("doctorId") String doctorId, @Param("institutionId")String institutionId);

    DdDoctorEntity selectDoctorInfoByIdAndInstitution(@Param("param1") String parseInt, @Param("institutionId")String institutionId);

	void updateById(@Param("id") String id, @Param("institutionId")String institutionId, @Param("idCard")String idCard);

	int update(DdDoctorEntity entity);

	List<Map<String,Object>> selectDoctorByInstitutionIdAndRole(@Param("institutionId") String institutionId, @Param("role")Integer role);

}
